<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="icon" th:href="@{/static/console/common/images/favicon.ico}">
    <link rel="stylesheet" type="text/css" th:href="@{/static/console/common/layui/css/layui.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/static/css/element/index.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/static/console/css/public.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/static/console/datepicker/jquery-datePicker.css}" />
    <link rel="stylesheet" th:href="@{/static/cloud/css/iconfont.css}" type="text/css" />
    <title>材料供应商</title>
    <style>

        .refundModal .msgBox {width: 100%;height: 100%;left: 40%;bottom: inherit;overflow: auto;}
    </style>
</head>
<script th:inline="javascript">
    const supplierTypeList = [[${supplierTypeList}]]
    const orgList = [[${orgList}]]
</script>
<body>
<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" action="">
            <div class="layui-form-item">
                <div class="layui-form-item layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" placeholder="检索关键字" class="layui-input search-text">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <select class="search-origin"  lay-filter="search-origin">
                            <!--                            <option value="">选择公司</option>-->
                            <option th:value="${org.id}" th:text="${org.originName}" th:each="org:${orgList}"></option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <select class="search-type" lay-search="" lay-filter="search-type">
                            <option value="">选择检索类型</option>
                            <option th:value="${type.id}" th:text="${type.name}" th:each="type:${supplierTypeList}"></option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <select class="search-status" lay-filter="search-status">
                            <option value="">状态</option>
                            <option value="0">启用</option>
                            <option value="1">禁用</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <a href="javascript:void(0)" class="layui-btn layui-btn-md layui-btn-danger btn-query" lay-filter="btn-query">
                        <i class="layui-icon layui-icon-search"></i>
                        查询
                    </a>
                </div>
            </div>
        </form>
    </div>
</div>
<div class="layui-card">
    <div class="layui-card-body">
        <table class="layui-hide" id="body-list" lay-filter="body-list"></table>
    </div>
</div>

<!--编辑-->
<div class="msgModal updateModal" id="update-mainsupplier-body">
    <div class="msgBox">
        <div class="msgBox-title">
            <h3 id="updateTitle" style="text-align: left; padding-left: 80px;">修改供应商数据</h3>
            <a class="close" href="javascript:void(0);"><img src="/static/console/img/close-btn.png" /></a>
        </div>
        <div class="msgBox-con">
            <form class="layui-form" style="width: 40%;">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">简称</label>
                        <div class="layui-input-inline">
                            <input type="name" class="layui-input update-name"  placeholder="简称">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">全称</label>
                        <div class="layui-input-inline">
                            <input type="fullName" class="layui-input update-fullName"  placeholder="全称">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">法人代表</label>
                        <div class="layui-input-inline">
                            <input type="legal" class="layui-input update-legal"  placeholder="法人代表">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">联系方式</label>
                        <div class="layui-input-inline">
                            <input type="phone" class="layui-input update-phone"  placeholder="联系方式">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">联系人</label>
                        <div class="layui-input-inline">
                            <input type="linkMan" class="layui-input update-linkMan"  placeholder="联系人">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">公司名称</label>
                        <div class="layui-input-inline">
                            <select class="update-origin" lay-filter="update-origin">
<!--                                <option value="">选择公司</option>-->
                                <option th:value="${org.id}" th:text="${org.originName}" th:each="org:${orgList}"></option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">纳税人识别号</label>
                        <div class="layui-input-inline">
                            <input type="taxCode" class="layui-input update-taxCode"  placeholder="纳税人识别号">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">类型</label>
                        <div class="layui-input-inline">
                            <select class="update-type" lay-filter="update-type">
<!--                                <option value="">选择类型</option>-->
                                <option th:value="${supp.id}" th:text="${supp.name}" th:each="supp:${supplierTypeList}"></option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">联系地址</label>
                        <div class="layui-input-inline">
                            <input type="address" class="layui-input update-address"  placeholder="联系地址">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-block" style="margin-left: 80px;">
                        <textarea placeholder="请输入内容" class="layui-textarea remark" style="resize: none;"></textarea>
                    </div>
                </div>
                <div class="layui-form-item qrcode-show" style="display:none;">
                    <label class="layui-form-label">右键下载二维码图片</label>
                    <!-- 筛选 -->
                    <div class="audit-screen flex aic" style="margin-left: 20px; ">
                        <div class="audit-screen-left qrcode" style="width: 100%;">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item" id="updateBtn" style="text-align: center;">
                    <div class="">
                        <a class="layui-btn btn-submit" lay-submit lay-filter="updateBtns">保存</a>
                    </div>
                </div>
            </form>

        </div>
    </div>
</div>

</body>

<script type="text/javascript" th:src="@{/static/console/assets/js/jquery-3.2.1.min.js}"></script>
<script type="text/javascript" th:src="@{/static/console/common/layui/layui.js}"></script>
<script type="text/javascript" th:src="@{/static/console/js/pages/base.js}" charset="utf-8"></script>
<script type="text/javascript" th:src="@{/static/js/vue.min.js}"></script>
<script type="text/javascript" th:src="@{/static/js/element/index.js}"charset="utf-8"></script>
<script type="text/javascript" th:src="@{/static/console/datepicker/jquery-datePicker.js}"charset="utf-8"></script>
<script type="text/javascript" th:src="@{/static/console/js/pages/material/mainsupplier.js}" charset="utf-8"></script>
<script type="text/javascript" th:src="@{/static/js/jquery.qrcode.js}" charset="utf-8"></script>
<script type="text/javascript" th:src="@{/static/js/utf.js}" charset="utf-8"></script>
<script type="text/javascript" th:src="@{/static/js/print/html2canvas.js}" charset="utf-8"></script>
<script type="text/javascript" th:src="@{/static/js/print/jspdf.debug.js}" charset="utf-8"></script>
<script type="text/javascript">

</script>

</html>